<%@ page language="java" import="java.util.*,com.vallis.model.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% Customer user=(Customer)session.getAttribute("User");
System.out.print(user);
 if(user!=null){

     response.sendRedirect("mypage.jsp"); 
}%>
<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Login Page </title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  


 <link rel="stylesheet" href="http://cdn.amazeui.org/amazeui/2.7.2/css/amazeui.css" > 
 <link rel="stylesheet" href="http://cdn.amazeui.org/amazeui/2.7.2/css/amazeui.min.css" > 





	 
  <script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60499",secure:"60202"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script><script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60499",secure:"60202"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
  <body data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-403" data-genuitec-path="/asfchn Maven Webapp/src/main/webapp/zipplayuitest.jsp" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-10" data-genuitec-path="/customer Maven Webapp/src/main/webapp/login.jsp">
  	<script src="js/jquery-1.12.3.min.js" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-403" data-genuitec-path="/asfchn Maven Webapp/src/main/webapp/zipplayuitest.jsp" data-genuitec-lp-enabled="false" data-genuitec-file-id="wc1-10" data-genuitec-path="/customer Maven Webapp/src/main/webapp/login.jsp"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.ie8polyfill.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.ie8polyfill.min.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.widgets.helper.js"></script>
 <script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.widgets.helper.min.js"></script>
  <link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
  <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>
<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60499",secure:"60202"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
<body>
  <header data-am-widget="header"
          class="am-header am-header-default am-header-fixed">
      <div class="am-header-left am-header-nav">
          <a href="index" class="">
              <span class="am-header-nav-title">
                首页
              </span>

                <i class="am-header-icon am-icon-home"></i>
          </a>
      </div>

      <h1 class="am-header-title">
          公司
      </h1>

        <nav data-am-widget="menu" class="am-menu  am-menu-dropdown1"  
     data-am-menu-collapse
    
    
    
    > 
    <a href="javascript: void(0)" class="am-menu-toggle">
          <i class="am-menu-toggle-icon am-icon-list"></i>
    </a>


     <!-- <ul class="am-menu-nav am-avg-sm-1 am-collapse">
          <li class="am-parent">
            <a href="##" class="" >公司</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-2 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                  
                  <li class="am-menu-nav-channel"><a href="##" class="" title="公司">进入栏目 &raquo;</a></li>
              </ul>
          </li>
          <li class="am-parent">
            <a href="##" class="" >人物</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-3 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                  
              </ul>
          </li>
          <li class="am-parent">
            <a href="#c3" class="" >趋势</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-4 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                 
                  <li class="am-menu-nav-channel"><a href="#c3" class="" title="趋势">泥煤 &raquo;</a></li>
              </ul>
          </li>
          <li class="am-parent">
            <a href="##" class="" >投融资</a>
              <ul class="am-menu-sub am-collapse  am-avg-sm-3 ">
                  <li class="">
                    <a href="##" class="" >公司</a>
                  </li>
                
              </ul>
          </li>
          <li class="">
            <a href="##" class="" >创业公司</a>
          </li>
          
      </ul>-->

  </nav>

  </header>

<div class="header">
  <div class="am-g">
    <img class="am-round" alt="140*140" src="image/logo.jpg" width="140" height="140"/>
   
  </div>

</div>
<div class="am-g">
  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
  



    <form method="post" class="am-form">
      <label for="phone">手机号:</label>
      <input type="number" name="phone" id="phone"  placeholder="请输入手机号">
      <br>
      <label for="password">密码:</label>
      <input type="password" name="password" id="password" placeholder="请输入密码">
      <br>
      <label for="sn">授权码:</label>
      <input type="text" name="sn" id="sn" placeholder="请输入授权码">
      <br>
      <label for="remember-me">
        <input id="remember-me" type="checkbox">
        记住密码
      </label>
      
      <br />
      <div class="am-cf">
        <input id="denglu" type="submit" name="" value="登 录" onclick="checkthis()" class="am-btn am-btn-primary am-btn-sm am-fl">
        <input  type="submit" name="" value="拨打电话 13014623688" class="am-btn am-btn-default am-btn-sm am-fr">
      </div>
    </form>
    <hr>
    <p> Copyright © 2019 水肌恩 版权所有 </p>
  </div>
</div>
<script type="text/javascript">
function isEmpty(obj){
    if(typeof obj == "undefined" || obj == null || obj == ""){
        return true;
    }else{
        return false;
    }
}
$('#phone').bind('input propertychange',function()
{
console.log($("#phone").val());
$('#denglu').removeAttr("disabled");
  //获取input 元素,并实时监听用户输入
  //逻辑
})
function checkthis(){

var www=$("#phone").val();
var yyy=$("#password").val();
var zzz=$("#sn").val();

if(!isEmpty(www) &&!isEmpty(yyy)){

login();

}else{
alert("请输入手机号或密码！");
$("#denglu").attr("disabled","disabled");
}
}
function login(){

var form =document.forms[0];

form.action="<%=basePath %>login";
form.method="post";
form.submit();

}
</script>
  <div data-am-widget="navbar" class="am-navbar am-cf am-navbar-default "
      id="">
      <ul class="am-navbar-nav am-cf am-avg-sm-4">
          <li >
            <a href="index" class="">
                  <span class="am-icon-home am-icon-lg"></span>
                <span class="am-navbar-label">首页</span>
            </a>
          </li>
          <li data-am-navbar>
            <a href="news.jsp" class="">
                  <span class="am-icon-search am-icon-lg"></span>
                <span class="am-navbar-label">资讯</span>
            </a>
          </li>
          <li data-am-navbar>
            <a href="about.jsp" class="">
                  <span class="am-icon-wpforms am-icon-lg"></span>
                <span class="am-navbar-label">关于我们</span>
            </a>
          </li>
          <!-- <li >
            <a href="https://github.com/allmobilize/amazeui" class="">
                  <span class="am-icon-github"></span>
                <span class="am-navbar-label">GitHub</span>
            </a>
          </li>
          <li >
            <a href="http://amazeui.org/getting-started" class="">
                  <span class="am-icon-download"></span>
                <span class="am-navbar-label">下载使用</span>
            </a>
          </li>
          <li >
            <a href="https://github.com/allmobilize/amazeui/issues" class="">
                  <span class="am-icon-location-arrow"></span>
                <span class="am-navbar-label">Bug 反馈</span>
            </a>
          </li>-->
      </ul>
  </div>

</body>
</html>
